<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	template="/layout/template.xhtml">
	<h:head>
		<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
		<ui:define name="title">Revisar Declaracion Jurada</ui:define>
		<link type="text/css" rel="stylesheet" href="themes/owner/skin.css" />
	</h:head>
	<ui:define name="body">
	<script language="JavaScript" type="text/javascript">
		window.history.forward(-1);
	</script>
		<h:form>
			<p:tabView>
				<p:tab title="Revisar Declaración Jurada">
					<div align="center">
						<table width="94%" align="center" border="0">
							<tr>
								<td width="70%" align="left">
									<table border="0" width="100%">

										<tr>
											<td colspan="2" style="text-align: center;" width="100%">
												<iframe width="500" height="675"
													src="ServletRevisarDeclaracionJurada?idPersona=#{personaBM.intIdPersonaDeclaracionJurada}" />
											</td>
										</tr>
										<tr>
											<td width="100%" style="text-align: right;"><h:selectOneRadio
													value="#{personaBM.idEstadoDeclaracionJurada}"
													unselectable="true">
													<f:selectItems value="#{personaBM.sltEstadoDeclaracion}" />
												</h:selectOneRadio> 
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
						<br />
						<h:panelGrid columns="1" style="margin: auto;">
							<h:panelGrid columns="2">

								<h:outputLabel value="Observaciones :" />
								<h:inputTextarea value="#{personaBM.strobservacionDeclaracionJurada}"
									id="observacion" cols="50" rows="10" />

								<p:commandButton value="Aceptar"
									action="#{personaBM.aceptarRevisionDeclaracionJurada}"
									ajax="false">
								</p:commandButton>
								
								<p:commandButton value="Regresar"
									action="#{personaBM.regresarVerListaDeclaracionJurada}" immediate="true"
									ajax="false" />
							</h:panelGrid>

						</h:panelGrid>
						<br />
					</div>
				</p:tab>
			</p:tabView>
		</h:form>
	</ui:define>
</ui:composition>
